﻿using System;
using System.IO;

namespace AutoFlatnessTest
{
    public class LocalFile
    {
        /// <summary>
        /// 程序运行目录
        /// </summary>
        public static readonly string AppDir;
        /// <summary>
        /// 本地数据库路径
        /// </summary>
        public static readonly string DbPath;
        /// <summary>
        /// 本地数据库文件夹路径（数据中心）
        /// </summary>
        public static readonly string DbRecordDir;
        /// <summary>
        /// 配置文件路径
        /// </summary>
        public static readonly string ConPath;
        /// <summary>
        /// 点位数据文件路径
        /// </summary>
        public static readonly string DotPath;


        static LocalFile()
        {
            AppDir = AppDomain.CurrentDomain.BaseDirectory;

            DbRecordDir = Path.Combine(AppDir, "data", "DataCenter.db3");
            DbPath = Path.Combine(AppDir, "data", "AutoFlatnessTest.db3");
            //DbPath = @"E:\code\自动平整度检测\数据库\AutoFlatnessTest.db3";
            ConPath = Path.Combine(AppDir, "data", "config.json");
            DotPath = Path.Combine(AppDir, "data", "dot.json");
        }

    }
}
